package com.day23.ex09;

import java.util.ArrayList;

public class StreamDemo05 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<String>();
        list.add("10");
        list.add("20");
        list.add("30");
        list.add("40");
        list.add("50");
        int result = list.stream().mapToInt(Integer::parseInt).sum();
        System.out.println(result);
    }
}
